package com.wl.api.service.business.impl;

import static com.wl.api.common.utils.PageInfo.transformPage;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wl.api.common.utils.BeanUtils;
import com.wl.api.common.utils.PageInfo;
import com.wl.api.dto.business.CustomerAddrReachDTO;
import com.wl.api.mapper.business.CustomerAddrReachMapper;
import com.wl.api.model.business.CustomerAddrReach;
import com.wl.api.service.business.ICustomerAddrReachService;

/**
 *
 * CustomerAddrReach 表数据服务层接口实现类
 *
 */
@Service
public class CustomerAddrReachServiceImpl extends ServiceImpl<CustomerAddrReachMapper, CustomerAddrReach> implements ICustomerAddrReachService {


	public PageInfo<CustomerAddrReachDTO> getAddrReachList(CustomerAddrReachDTO param) {
		Page<CustomerAddrReach>  page = selectPage(new Page<CustomerAddrReach>(param.getPage(),  param.getPageSize()),  new EntityWrapper<CustomerAddrReach>(BeanUtils.copyProperties(param, CustomerAddrReach.class)));
		return transformPage(CustomerAddrReachDTO.class, page);
	}
}